﻿@model RestaurantClassLibrary.Reservation

@{
    ViewBag.Title = "Cancel Reservation";
}

<h2>Cancel Reservation</h2>

<h3>Are you sure you want to cancel this Reservation?</h3>
<br />
<fieldset>
    <legend>Reservation</legend>

    <div class="display-label">
        <strong>
         @Html.DisplayNameFor(model => model.Date)
        </strong>
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Date)
    </div>
    <br />
    <div class="display-label">
        <strong>
         @Html.DisplayNameFor(model => model.Seats)
        </strong>
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Seats)
    </div>
    <br />
    <div class="display-label">
        <strong>
            Contact Name
        </strong>
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Name)
    </div>
    <br />
    <div class="display-label">
        <strong>
            Contact Number
        </strong>
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.PhoneNumber)
    </div>
</fieldset>
@using (Html.BeginForm("DoDelete", "Reservation", new { id = @Model.ID }))
{
    <p>
        <input type="submit" value="Yes, Cancel Reservation" />
    </p>
}
<br />
@Html.ActionLink("No, Don't Cancel Reservation", "Details", new { id = @Model.ID })
